.wrapper {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.viewContainer,
.viewDiv {
  flex: auto;
  margin: 0;
  padding: 0;
  display: flex;
  position: relative;
}

/* 覆盖Popup的样式 */

:global {
  .main-page {
    .esri-popup {
      background: rgba(0, 0, 0, 0.5);
      box-shadow: 0px 30px 40px 0px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.3);
      .esri-widget {
        background: transparent;
      }
    }
    .esri-feature__content-element,
    .esri-popup__header-title {
      padding-left: 16px;
      padding-right: 16px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .esri-popup__main-container {
      width: 384px;
      background-color: transparent;
    }

    .esri-popup__header-title {
      position: relative;
      height: 40px;
      line-height: 40px;
      font-size: 18px;
      font-family: AlibabaPuHuiTi-Bold, AlibabaPuHuiTi;
      font-weight: bold;
      color: rgba(255, 255, 255, 1);
      line-height: 25px;
      text-align: left;
      margin: 0;
      &:after {
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        content: '';
        height: 40px;
        background: linear-gradient(
          90deg,
          rgba(21, 172, 237, 0.4) 0%,
          rgba(21, 172, 237, 0.3) 100%
        );
        opacity: 0.5;
      }
    }

    .esri-popup__header {
      display: block;
    }
    .esri-popup__header-title:hover {
      background-color: transparent;
    }
    .esri-popup__content {
      margin: 0;
    }
    .esri-feature__main-container {
      padding-left: 14px;
      padding-right: 14px;
      background: url('');
    }

    .esri-popup__button {
      display: none;
    }
    .esri-popup__pointer {
      display: none;
    }
  }
}

:global(.esri-popup__main-container .esri-widget__table) {
  font-size: 14px;
  font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  line-height: 20px;
}

:global(.esri-popup__main-container .esri-widget__table tr) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  height: 36px;
}

:global {
  .main-page {
    .c-popup {
      text-align: left;
      color: #ffffff;
      font-size: 16px;
      padding-top: 10px;
      padding-bottom: 10px;
      &-p {
        margin-right: 98px;
        span {
          color: rgba(#ffffff, 0.7);
          padding-left: 6px;
        }
      }
      &-footer {
        display: flex;
        justify-content: space-between;
      }
      &-address {
        font-size: 14px;
        color: rgba(#ffffff, 0.5);
      }
      &-link {
        color: darken(#3af2f6, 5%);
        font-size: 14px;
        cursor: pointer;
        transition: color linear 0.2s;
        &:hover {
          color: #3af2f6;
        }
      }

      &-status {
        position: absolute;
        right: 16px;
        top: 10px;
        height: 20px;
        line-height: 20px;
        padding: 0 4px;
        background: #ff663c;
      }

      &-chart {
        position: absolute;
        // top: 12px;
        top: 62px;
        right: 12px;
        background: url(../../public/images/popup_chart.png);
        background-repeat: no-repeat;
        width: 100px;
        line-height: 100px;
        height: 100px;
        color: #ffffff;
        // font-size: 16px;
        background-size: cover;
        text-align: center;
        font-size: 12px;
      }
    }
  }

  .project-page {
    .c-popup {
      text-align: left;
      color: #ffffff;
      font-size: 16px;
      padding-top: 10px;
      padding-bottom: 10px;
      padding: 16px;
      &-p {
        // margin-right: 98px;
        width: 100%;
        span {
          color: rgba(#ffffff, 0.7);
          padding-left: 6px;
        }
      }
      &-footer {
        display: flex;
        justify-content: space-between;
      }
      &-address {
        font-size: 14px;
        color: rgba(#ffffff, 0.5);
      }
      &-link {
        color: darken(#3af2f6, 5%);
        font-size: 14px;
        cursor: pointer;
        transition: color linear 0.2s;
        &:hover {
          color: #3af2f6;
        }
      }

      &-status {
        display: inline-block;
        height: 20px;
        line-height: 20px;
        padding: 0 4px;
        background: #ff663c;
      }

    }
  }
}
